package com.tpi.smartpayments;

/**
 * <p>Title: SmartPaymentsClient_JavaHTTPPost</p>
 *
 * <p>Description: A simple example to show how to use HTTP POST to send
 * transactions to the SmartPayments Web Service</p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: TPI Software</p>
 *
 * @author Andy Chau
 * @version 1.0
 */
public class Base {
    protected boolean verbose = false;
    protected int timeout = 30;
    protected String url = "https://www.tpisoft.com/SmartPayments/Transact.asmx";
      synchronized public java.lang.String getUrl() {
          return url;
      }

      synchronized public void setVerbose(boolean verbose) {
          this.verbose = verbose;
      }

      synchronized public boolean getVerbose() {
          return verbose;
      }

      synchronized public void setUrl(java.lang.String url) {
          this.url = url;
      }

      synchronized public int getTimeout() {
        return this.timeout;
      }

      synchronized public void setTimeout(int timeout) {
        this.timeout = timeout;
      }

      synchronized public String urlDecode(String s) {
          if (s == null)
              return "";
          else
              return java.net.URLDecoder.decode(s);
      }

      synchronized public String urlEncode(String s) {
          if (s == null)
              return "";
          else
              return java.net.URLEncoder.encode(s);
      }
    public Base() {
    }
}
